package com.u.finance.call.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("repayment_schedule")
public class RepaymentSchedule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "schedule_id", type = IdType.AUTO)
    private Long scheduleId;

    private Long loanId;

    private Long userId;

    /**
     * 应还款日期
     */
    private LocalDate dueDate;

    /**
     * 应还本金
     */
    private BigDecimal principal;

    /**
     * 应还利息
     */
    private BigDecimal interest;

    /**
     * 应还总额（本金+利息）
     */
    private BigDecimal totalAmount;

    /**
     * 还款状态
     */
    private String status;


}
